/* eslint-disable */
// @ts-ignore
import request from '@/utils/request';
import { CustomRequestOptions } from '@/interceptors/request';

import * as API from './types';

/** 文章详情 GET /api/pc/articleDetail */
export async function articleDetailUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.articleDetailUsingGETParams;
  options?: CustomRequestOptions;
}) {
  return request<API.AjaxResultPCwenzhangxiangqingVo>('/api/pc/articleDetail', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 公共配置 GET /api/pc/config */
export async function getConfigUsingGet({
  options,
}: {
  options?: CustomRequestOptions;
}) {
  return request<API.AjaxResultMapstring>('/api/pc/config', {
    method: 'GET',
    ...(options || {}),
  });
}

/** 主页数据 GET /api/pc/index */
export async function indexUsingGet1({
  options,
}: {
  options?: CustomRequestOptions;
}) {
  return request<API.AjaxResultMapstring>('/api/pc/index', {
    method: 'GET',
    ...(options || {}),
  });
}

/** 资讯中心 GET /api/pc/infoCenter */
export async function infoCenterUsingGet({
  options,
}: {
  options?: CustomRequestOptions;
}) {
  return request<API.AjaxResultListPCzixunzhongxinVo>('/api/pc/infoCenter', {
    method: 'GET',
    ...(options || {}),
  });
}
